package a05;

import org.springframework.context.support.GenericApplicationContext;

public class TestMapperPostProcessor {
    public static void main(String[] args) {
        GenericApplicationContext context = new GenericApplicationContext();
        context.registerBean("config", Config.class);
        context.registerBean(MyAtBeanPostProcessor.class);
        context.registerBean(MapperPostProcessor.class);

        context.refresh();  //会调用BeanFactory后处理器、Bean的初始化等
        for (String name : context.getBeanDefinitionNames()) {
            System.out.println(">>>" + name);
        }
    }
}
